package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.MediaAdvertsing;
import com.weixing.mall.provider.model.dto.ads.MediaAdvertsingDto;
import com.weixing.mall.provider.model.query.FrontMediaAdvertSingQuery;
import com.weixing.mall.provider.model.query.MediaAdvertsingQuery;
import com.weixing.mall.provider.model.vo.FrontMediaAdvertsingDetilVo;
import com.weixing.mall.provider.model.vo.FrontMediaAdvertsingVo;
import com.weixing.mall.provider.model.vo.ads.MediaAdvertsingVo;

import java.util.List;

/**
 * <p>
 * 广告模块-媒体广告表 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface IMediaAdvertsingService extends IService<MediaAdvertsing> {

    IPage<MediaAdvertsingVo> selectOfPage(Page initMpPage, MediaAdvertsingQuery mediaAdvertsingQuery, Long uid);

    List<MediaAdvertsingVo> getList(MediaAdvertsingQuery mediaAdvertsingQuery);

    List<MediaAdvertsingVo> selectList(MediaAdvertsingQuery mediaAdvertsingQuery);

    void save(MediaAdvertsingDto mediaAdvertsingDto);

    void changeStaus(Long id, int value);

    IPage<FrontMediaAdvertsingVo> selectFrontOfPage(Page page, FrontMediaAdvertSingQuery frontMediaAdvertSingQuery, Long uid);

    FrontMediaAdvertsingDetilVo selectFrontDetil(Long id);
}
